class CustomizationsController < ApplicationController
  
  def index
    
  end
  
  def best_fit #displays the "Best Fit" form 
    @customization = Customization.new
  end
  
  def best_fit_create #processes the "Best Fit" form
      @customization = Customization.new(params[:customization])
        
      @customizations = Customization.search(@customization.name, @customization.model)
      if @customizations[0] == nil
          render(:text => "Match NOT Found")
      else
          render(:text => "Match Found")
      end
  end
  
  def best_fit_show
    
  end
  
  def browse #displays all the severs on browse page
    
  end
  
  def browse_create #process the server image selected from browse page
    
  end
  
  def logging
      @customizations = Customization.all
      ActiveSupport::Deprecation.warn("This is a Deprecation")
      logger.debug("This is Debug")
      logger.info("This is info")
      logger.warn("This is warn")
      logger.error("This is error")
      logger.fatal("This is fatal")
      render(:text => "Logged!")
   end 
end
